package com.software.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.software.bean.CustomerAddressBean;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wyj
 * @since 2024-03-31
 */
public interface CustomerAddressMapper extends BaseMapper<CustomerAddressBean> {

    Integer updateIsDefaultByIdToNotDefault(Integer cid);

    CustomerAddressBean selectAddressByCidForIsDefault(Integer cid);

    List<CustomerAddressBean> selectAddressListByCid(Integer cid);

    CustomerAddressBean getIsDefaultAddress(Integer cid);

//    List<CustomerAddressBean> getAddRessListByCid(Integer customerId);
}
